package com.owc.dao;

import com.owc.domain.dto.OrderYesterdayIncomeDTO;import com.owc.domain.entity.IncomeRecord;
import java.math.BigDecimal;import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface IncomeRecordMapper extends BaseMapper<IncomeRecord,Long> {

    /**
     * 获取用户昨日收益
     *
     * @param userId 用户ID
     */
    BigDecimal selectYesterdayIncome(@Param("userId") Long userId);

    /**
     * 批量获取订单昨日收益
     *
     * @param orderIds 订单ID集合
     */
    List<OrderYesterdayIncomeDTO> selectYesterdayInOrderIds(@Param("orderIds") List<Long> orderIds);
}